<?php
namespace app\scodetrace\controller;

class ActivityTypes extends \app\common\controller\Base {
	protected $modelname='ActivityType';

	protected function _index(){
		$condition=[];
		$param=$this->param;

		if (isset($param['name']))
			$condition[]=['name','like',"%".$param['name']."%"];
    if (isset($param['remark']))
      $condition[]=['remark','like',"%".$param['remark']."%"];

		return $condition;
	}
}

?>